import { http } from '@/utils/request.js'

const businessFlowService = {
  list: (params) => {
    return http.get('/system/businessFlow/list', params)
  },
  insert: (params) => {
    return http.post('/system/businessFlow/insert', params)
  },
  detail: (id) => {
    return http.get(`/system/businessFlow/${id}`)
  },
  delete: (id) => {
    return http.delete(`/system/businessFlow/${id}`)
  },
  update: (params) => {
    return http.post('/system/businessFlow/update', params)
  }
}

export default businessFlowService
